package com.hongji.lms5xxcommunicator.scanner;

public interface ScanStrategy extends AutoCloseable {

    interface ScanFrameListener {
        void onFrame(ScanFrame frame);
    }

    void start(ScanFrameListener listener) throws Exception;

    void stop();

    boolean isRunning();

    @Override
    default void close() {
        stop();
    }
}
